﻿using System;
using System.Collections;
using System.Collections.Generic;
using GalaSoft.MvvmLight;

namespace EnsureWeb.UI.Core
{
    public class AggregationData : List<AggregationItem>
    {
    }
    
    public class AggregationItem : ViewModelBase
    {
        public AggregationItem(int id, string name)
        {
            this.Id = id;
            this.Name = name;
        }

        public AggregationItem(int id, string name, bool isSelected)
        {
            this.Id = id;
            this.Name = name;
            this.IsSelected = isSelected;
        }

        private int id;
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
                RaisePropertyChanged("Id");
            }
        }

        private string name;
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }

        private bool isSelected;
        public bool IsSelected
        {
            get
            {
                return isSelected;
            }
            set
            {
                isSelected = value;
                RaisePropertyChanged("IsSelected");
            }
        }
    }


}
